$(document).ready(function() {

	$("#login_but").click(function() {
		login();


	});

});

function login() {
	var name = $("input[name='username']").val();
	var pwd = $("input[name='pwd']").val();
	$.ajax({
		type: "POST",
		url: "xxx",
		dataType: "json",
		data: {
			username: name,
			pwd: pwd
		},
		success: function(data) {

			//登录失败时候错误的提醒
			$(".mui-input-info").show(300);
		},
		error: function(jqXHR) {
			aler("发生错误：" + jqXHR.status);
		}
	});

}
